﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Acme.BookStore.Migrations
{
    /// <inheritdoc />
    public partial class Added_Schema_To_Tables : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.EnsureSchema(
                name: "public");

            migrationBuilder.RenameTable(
                name: "ShopTable",
                newName: "ShopTable",
                newSchema: "public");

            migrationBuilder.RenameTable(
                name: "RFIDTable",
                newName: "RFIDTable",
                newSchema: "public");

            migrationBuilder.RenameTable(
                name: "KehuTable",
                newName: "KehuTable",
                newSchema: "public");

            migrationBuilder.RenameTable(
                name: "GongyingTable",
                newName: "GongyingTable",
                newSchema: "public");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameTable(
                name: "ShopTable",
                schema: "public",
                newName: "ShopTable");

            migrationBuilder.RenameTable(
                name: "RFIDTable",
                schema: "public",
                newName: "RFIDTable");

            migrationBuilder.RenameTable(
                name: "KehuTable",
                schema: "public",
                newName: "KehuTable");

            migrationBuilder.RenameTable(
                name: "GongyingTable",
                schema: "public",
                newName: "GongyingTable");
        }
    }
}
